'use strict';

const RouterService = require('../base');

class UserPostService extends RouterService {
    static get modelName() {
        return 'Business.UserPost';
    }
    getPageInclude() {
        return [
            {
                model: this.ctx.model.Business.User,
                as: 'user',
            },
            {
                model: this.ctx.model.Business.UserPostLike,
                as: 'likes',
            }
        ]
    }
    getListInclude() {
        return this.getPageInclude()
    }
    getDetailInclude() {
        return this.getPageInclude()
    }
}

module.exports = UserPostService;
